package com.chuangjiangx.member.stored.ddd.dal.condition;

import com.chuangjiangx.commons.QueryCondition;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;

/**
 * 查询储值明细列表接口参数
 * Created by YangKuo on 2017/11/23.
 */
@Getter
@Setter
public class QueryStoredListForClientCondition extends QueryCondition {

    /**
     * 所属商户id
     */
    private Long merchantId;


    private String mobile;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 交易类型
     */
    private Byte type;

    private Long storeId;

    public void setMobile(String mobile) {
        if (StringUtils.isNotBlank(mobile)) {
            this.mobile = "%" + mobile + "%";
        }
    }

}
